package sugarbind_input

class Lectin_Uniprot {


	String uniprot_Id
	
    static constraints = {
		lectin(nullable:false)
		uniprot_Id(nullable:false)
		uniprot_Id(unique:true)
    }
	
	static hasOne = [lectin: Lectin]
	
	static mapping = {
//		id column: 'lectin_uniprot_id'
		id generator: 'sequence', params: [sequence: 'lectin_uniprot_id_seq']
    }
	
	public String toString(){
		uniprot_Id + " " //+ lectin.lectin_Name
	}
	
}
